<?php if (isset($is_common_home) && $is_common_home): ?>
<div class="container module-bottom"><div class="row"><div class="col-sm-12">
<?php endif ?>
<div class="module-product-box">
  <p class="module-title"><span><?php echo $heading_title; ?></span></p>
  <div class="row">
    <?php foreach ($products as $product) { ?>
    <div class="product-layout product-grid col-lg-3 col-md-3 col-sm-6 col-xs-6">
      <div class="product-thumb">
        <div class="image">
          <a href="<?php echo $product['href']; ?>">
            <img src="<?php echo $product['thumb']; ?>" alt="<?php echo $product['name']; ?>" title="<?php echo $product['name']; ?>" class="img-responsive" />
          </a>
        </div>
        <div class="product-info">
          <h4 class="product-name"><a href="<?php echo $product['href']; ?>"><?php echo $product['name']; ?></a></h4>
          <p class="description"><?php echo $product['description']; ?></p>
          <div class="rating stars-box">
            <?php for ($i = 1; $i <= 5; $i++) { ?>
            <?php if ($product['rating'] < $i) { ?>
            <span class="fa fa-stack"><i class="fa fa-star off fa-stack-1x"></i></span>
            <?php } else { ?>
            <span class="fa fa-stack"><i class="fa fa-star off fa-stack-1x"></i><i class="fa fa-star fa-stack-1x"></i></span>
            <?php } ?>
            <?php } ?>
          </div>
          <?php if ($product['price']) { ?>
          <p class="product-price">
            <?php if (!$product['special']) { ?>
            <span class="price-price"><?php echo $product['price']; ?></span>
            <?php } else { ?>
            <span class="price-new"><?php echo $product['special']; ?></span> <span class="price-old"><?php echo $product['price']; ?></span>
            <?php } ?>
            <?php if ($product['tax']) { ?>
            <span class="price-tax"><?php echo $text_tax; ?> <?php echo $product['tax']; ?></span>
            <?php } ?>
          </p>
          <?php } ?>
        </div>
      </div>
    </div>
    <?php } ?>
  </div>
</div>
<?php if (isset($is_common_home) && $is_common_home): ?>
</div></div></div>
<?php endif ?>
